<%@ Control Inherits="CVCommunity.Admin.Search" %>
<%@ Register tagPrefix="forum" namespace="CVCommunity.Provider" assembly="CVCommunity.Provider"%>
<script language="javascript" src="../scripts/calendar.js"></script>
<script language="javascript">
function chkAllBox()
{
	var f = document.forms[1];
	var ischecked = f.checkall.checked;
	for (var i=0; i<f.elements.length; i++)
	{
		if (f.elements[i].type.toLowerCase() == "checkbox")
		{
			f.elements[i].checked = ischecked;
		}
	}
}
</script>
<form id="searchform" method="get">
<div class="grid">
<input type="hidden" name="status" value="search" />
<table id="searchtable" cellspacing="0" class="inner" style="font-size:12px;">
<tr class="forumno category" style="font-size:14px;">
<td colspan="3">检索用户</td>
</tr>
<tr class="forumtd">
<td width="135"><input type="radio" value="1" name="uid" class="smallbox" <%=CheckedUID%>/>UID <input type="radio" value="0" name="uid" class="smallbox" <%=CheckedUsername%>/>注册名</td>
<td width="225"><input name="username" class="input2" onblur="this.className='input2'" onfocus="this.className='input1'" id="username" style="width:130px" maxlength="12" value='<%=Username%>' /></td>
<td>&nbsp;</td>
</tr>
<tr class="forumtd">
<td>组别</td>
<td><select name="groupid">
<option value="">- 所有用户组 -</option>
<%=GroupList%>
</select></td>
<td>&nbsp;</td>
</tr>
<tr class="forumtd">
<td>注册 IP 或者最后登录 IP</td>
<td><input name="ip" style="width:130px" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" maxlength="15" value='<%=Ip%>'/></td>
<td>如：221.224.52.*, 221.224.*.*</td>
</tr>
<tr class="forumtd">
<td>此日期后未登录过</td>
<td><input name="lasttime" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" value='<%=LastTime%>' style="width:130px" onclick="calendar.setHook(this)" maxlength="10" readonly="readonly"/></td>
<td>在这个日期之后再未登录过</td>
</tr>
<tr class="forumtd">
<td>积分范围</td>
<td>积分在
<input name="creditmin" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" style="width:50px" maxlength="5" value='<%=CreditMin%>'/>
到
<input name="creditmax" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" style="width:50px" maxlength="5" value='<%=CreditMax%>'/>
之间</td>
<td>-9999到99999之间的整数</td>
</tr>
<tr class="forumtd">
<td>是否锁定</td>
<td><input name="locked" class="smallbox" type="checkbox" value="1"<%=Locked%>/>
被锁定的会员</td>
<td>只显示已被锁定的会员</td>
</tr>
<tr class="forumtd">
<td>是否已经审核</td>
<td><input name="approved" class="smallbox" type="checkbox" value="1"<%=Approved%>/>
未审核的会员
</label></td>
<td>只显示新注册后等待审核的会员</td>
</tr>
<tr class="forumtd">
<td>是否等待激活</td>
<td><input name="activated" class="smallbox" type="checkbox" value="1"<%=Activated%>/>
等待激活的会员</td>
<td>只显示新注册后等待激活的会员</td>
</tr>
<tr class="forumtd">
<td colspan="3" align="center"><input name="submit" class="button" type="submit" value="  查 询  " /></td>
</tr>
</table>
</div>
</form>

<form id="operate" runat="server">
<div class="grid">
<table cellspacing="0" class="inner" style="font-size:12px;">
<tr align="center" bgcolor="#FFFFFF" class="forumno">
<td width="20"></td>
<td width="30">编辑</td>
<td>会员名</td>
<td width="30">性别</td>
<td width="60">用户组</td>
<td width="30">状态</td>
<td width="50">发帖</td>
<td width="50">积分</td>
<td width="80">最后IP </td>
<td width="90">最后登录</td>
<td width="60" align="right">注册日期</td>
</tr>
<asp:Repeater enableviewstate="false" id="list" runat="server">
<ItemTemplate>
<tr align="center" class="forumtd">
<td><forum:Span id="box" class="smallbox" runat="server"/></td>
<td><forum:Anchor id="alter" style="color:#555" text="修改" runat="server"/></td>
<td><forum:Anchor id="name" runat="server"/></td>
<td style="color:#993366"><forum:Span id="sex" runat="server"/></td>
<td style="color:#CC0000"><forum:Span id="level" runat="server"/></td>
<td style="color:#333333"><forum:Span id="status" runat="server"/></td>
<td style="font-size:11px; color:#999900"><forum:Span id="post" runat="server"/></td>
<td style="font-size:11px; color:#996666"><forum:Span id="credit" runat="server"/></td>
<td style="font-size:11px; color:#339900;"><forum:Span id="lastip" runat="server"/></td>
<td style="font-size:11px; color:#FF6600;"><forum:Span id="lasttime" runat="server"/></td>
<td style="font-size:11px; color:#009999;" align="right"><forum:Span id="jointime" runat="server"/></td>
</tr>
</ItemTemplate>
</asp:Repeater>
<tr id="operaterow" runat="server" class="forumtd">
<td align="center"><input name="checkall" id="checkall" class="smallbox" type="checkbox" onclick="chkAllBox()" /></td>
<td colspan="10">&nbsp;
<input type="radio" class="smallbox" name="option" value="activate" checked="true" />
激活选中的会员
&nbsp;
<input type="radio" class="smallbox" name="option" value="delete" />
删除选中记录
&nbsp; &nbsp;
<input type="submit" class="button" value="执行" onclick="return confirm('确定要执行该操作吗？?')" runat='server' />
&nbsp;
<forum:Span id="result" class="t2" runat="server"/></td>
</tr>
<tr class="forumtd">
<td colspan="11"><forum:Pager id="pager" per="20" runat="server"/></td>
</tr>
</table>
</div>
</form>